package main

//// redisSettingAPI 注册RedisSettingAPI信息
//func redisSettingAPI(app *api.App) {
//	redisSettingAPI := app.Application().Party("/setting")
//	{
//		hanler := router.NewRedisSettingHanler(settingService)
//		redisSettingAPI.Post("/save", hanler.SaveRedisSetting)
//		redisSettingAPI.Post("/update", hanler.UpdateRedisSetting)
//		redisSettingAPI.Post("/remove", hanler.RemoveRedisSetting)
//		redisSettingAPI.Post("/get", hanler.GetRedisSetting)
//		redisSettingAPI.Post("/list", hanler.ListRedisSetting)
//		redisSettingAPI.Post("/option", hanler.OptionRedisSetting)
//		redisSettingAPI.Post("/check", hanler.CheckRedisSetting)
//	}
//}
//
//// registRedisRecordAPI 注册RedisSettingAPI信息
//func registRedisRecordAPI(service biz.RedisRecordService) {
//
//	redisSettingAPI := app.Party("/redis/record")
//	{
//		// POST: http://localhost:8080/books
//		redisSettingAPI.Post("/save", saveRedisRecord(service))
//		redisSettingAPI.Post("/update", updateRedisRecord(service))
//		redisSettingAPI.Post("/remove", removeRedisRecord(service))
//		redisSettingAPI.Post("/get", getRedisRecord(service))
//		redisSettingAPI.Post("/list", listRedisSRecord(service))
//	}
//
//}

// TODO 集成前端还需要做
//func view(app *api.App) {
//
//	app.Application().HandleDir("/static", "resources/static/")
//	tmpl := iris.HTML("resources/html/", ".html")
//	app.Application().RegisterView(tmpl)
//
//	newView := router.NewView()
//	app.Application().Get("/", newView.SettingView)
//	app.Application().Get("/login", newView.SettingView)
//}
